package com.mysite.seckill.web.service;

import com.mysite.seckill.commons.po.Product;
import com.mysite.seckill.web.mapper.ProductMapper;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductService {

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private ProductMapper productMapper;

    public List<Product> getProducts() {
        return productMapper.selectProduct();
    }
}
